SHELL=bash 

PAPER_EXHIBITS = $(addprefix ../output/, crosstabs.pdf demographics.tex binary_questions.tex pagetimings_experiment.pdf house_vote.tex pres_vote.tex trump_replication.tex lucidtiming.pdf)

all: $(PAPER_EXHIBITS)

../output/crosstabs.pdf ../output/demographics.tex ../output/binary_questions.tex ../output/inconsistents_main_analysis.log: inconsistents_main_analysis.R | ../output
	echo "Running $< "
	Rscript $<
../output/pagetimings_experiment.pdf ../output/experiment_abortion_contradict.pdf ../output/experiment_timings.tex : experiment21.R | ../output
	echo "Running $< "
	Rscript $<
../output/house_vote.tex ../output/pres_vote.tex ../output/voteredo2022_build_analysis.log: voteredo2022_build_analysis.R voteredo2020_build.R | ../output
	echo "Running $< "
	Rscript $<
../output/trump_replication.tex: replicate_bpz.R | ../output
	echo "Running $< "
	Rscript $<
../output/lucidtiming.pdf: lucid_experiment.R | ../output 
	echo "Running $< "
	Rscript $<
../output/: 
	mkdir $@